/*
 * @Author: y001554
 * @Date: 2023-02-16 18:17:48
 * @LastEditors: y001554
 * @LastEditTime: 2023-02-16 18:30:06
 * @FilePath: \ylwl\src\worker.js
 * @Description:
 *
 * Copyright (c) 2023 by FE/ylwl, All Rights Reserved.
 */
function calc() {
  console.log('执行 ')
}

function dosomething(e) {
  console.log('执行 e', e)

  setTimeout(() => {
    postMessage('aaa')
  }, 4000)
}

onmessage = dosomething

// calc()
